<?php
//分布式 memcache 连接
require_once 'consistentHash.php';
class FenbuMemConnect
{
    public $consistentHash;
    function __construct()
    {
        $serverConfig = include_once 'memServerConfig.php';        
        if(is_array($serverConfig))
        {
            $this->consistentHash = new ConsistentHash();
            
            foreach ($serverConfig as $k => $value)
            {
                $this->consistentHash->addServer($value);
            }    
        }        
    }
}
?>